package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor//创建有参构造器
@NoArgsConstructor//创建无参构造器
//@Entity
//@Table(name = "concert")
@TableName("concert")
public class ConcertBean implements java.io.Serializable{
    //演唱会信息
//    @Id
    @TableId(type = IdType.AUTO)//主键自增
    private Integer id;
    private String title;
    private String artist;
    private Integer venueid;
    private LocalDateTime startdate;
    private LocalDateTime enddate;
    private LocalDateTime startsale;
    private Integer status;
    private String introduction;
    private LocalDateTime creatdate;
    private String photo;
    @TableLogic  // 标记为逻辑删除字段
    @TableField(value = "isdel")  // 映射数据库表中的isdel列
    private Integer isdel;

    // 非数据库字段，用于存储关联的场地信息
    @TableField(exist = false) // 标识该字段不是数据库表字段
    private String venueName; // 场地名称（来自venue表name）

    @TableField(exist = false)
    private String venueAddress; // 场地地址（来自venue表address）
}
